package info.ask4research.web.dto;

import info.ask4research.model.addons.Addon;


public class AddonDTO {

	private String text;
	private String type;
	private String id;
	private boolean leaf;
	private boolean enable;
	private String cls;
	private String iconCls;
	
	public AddonDTO(){
	}
	
	public AddonDTO(String text, String id, boolean leaf, String cls){
		this.id = id;
		this.leaf = leaf;
		this.cls = cls;
	}
	public AddonDTO(Addon addon){
		this.id = String.valueOf(addon.getId());
		this.leaf = true;
		this.cls = cls;
		
	}
	
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public boolean isLeaf() {
		return leaf;
	}
	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}
	public String getCls() {
		return cls;
	}
	public void setCls(String cls) {
		this.cls = cls;
	}
	//"cls":"folder","id":"root/learnerLeaf/cewcwefc","leaf":true,"text":"cewcwefc"
	//"text":"Controller.js","id":"src\/app\/Controller.js","leaf":true,"cls":"file"

	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public boolean isEnable() {
		return enable;
	}

	public void setEnable(boolean enable) {
		this.enable = enable;
	}


}

